<!DOCTYPE html>
<html>


<!-- Mirrored from www.zi-han.net/theme/hplus/table_data_tables.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:01 GMT -->
<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>商家列表</title>

    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="__PUBLIC__/dist/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">

    <!-- Data Tables -->
    <link href="__PUBLIC__/dist/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/plugins/iCheck/custom.css" rel="stylesheet">

    <link href="__PUBLIC__/dist/css/animate.min.css" rel="stylesheet">
    <link href="__PUBLIC__/dist/css/style.min862f.css?v=4.1.0" rel="stylesheet">
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>{$info ? '编辑' : '新增'}商家</h5>
                </div>
                <div class="ibox-content">
                    <form id="myform" role="form" class="form-horizontal m-t" method="post">
                        <div class="form-group draggable ui-draggable">
                            <label class="col-sm-2 control-label">商家名称：</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="name" name="name" value="{$info.name}" placeholder="请输入商家名称" required>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <!--详情描述-->
                        <div id="tab-1" class="tab-pane">
                            <div class="panel-body">
                                <div class="form-group">
                                    <label class="col-sm-2 control-label">备注：</label>
                                    <div class="col-sm-10">
                                        <textarea name="remark" id="editor2">{$info.remark}</textarea>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group draggable ui-draggable">
                            <div class="col-sm-12 col-sm-offset-3">
                                <input type="hidden" name="IP" value="{$info.IP}">
                                <input type="hidden" name="lasttime" value="{$info.lasttime}">
                                <input type="hidden" name="id" value="{$info.id}">
                                <button class="btn btn-primary" type="submit">确定</button>
                                <button class="btn btn-white" type="submit" onclick="javascript:history.go(-1);">取消</button>
                            </div>
                        </div>
                    </form>
                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="__PUBLIC__/dist/js/jquery.min.js?v=2.1.4"></script>
<script src="__PUBLIC__/dist/js/bootstrap.min.js?v=3.3.6"></script>
<script src="__PUBLIC__/dist/js/plugins/jeditable/jquery.jeditable.js"></script>
<script src="__PUBLIC__/dist/js/plugins/dataTables/jquery.dataTables.js"></script>
<script src="__PUBLIC__/dist/js/plugins/dataTables/dataTables.bootstrap.js"></script>
<script src="__PUBLIC__/dist/js/content.min.js?v=1.0.0"></script>
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/lib/jquery.js"></script>
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/jquery.validate.min.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/libs/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/libs/ueditor/ueditor.all.min.js"> </script>
<script src="http://static.runoob.com/assets/jquery-validation-1.14.0/dist/localization/messages_zh.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/libs/global.js?rnd=12345678"> </script>

	<script>
        UE.getEditor('editor2');
		$().ready(function() {
		// 在键盘按下并释放及提交后验证提交表单
		    $("#myform").validate({
                rules: {
                name: {
                    required: true,
                    rangelength: [1,32]
                }
                },
                messages: {
                    name: {
                        required: "请输入商家名称",
                        rangelength: "商家名称长度不能小于 1 个字母"
                    }
                },submitHandler: function(form) {
                    form.submit();
                }
			})
		});
	</script>
</body>


<!-- Mirrored from www.zi-han.net/theme/hplus/table_data_tables.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:02 GMT -->
</html>
